package com.canyou.basic.entity.media;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 上传文件资源信息
 *
 * @author fy
 * @date 20/02/19 11:38
 */
@Data
@Accessors(chain = true)
@ApiModel(value="MediaVo", description="上传文件资源信息")
public class MediaVO {

    @ApiModelProperty(value = "文件id")
    private Long id;

    @ApiModelProperty(value = "文件名称")
    private String name;

    @ApiModelProperty(value = "文件直接访问路径")
    private String url;

    @ApiModelProperty(value = "通过算法计算资源的hash值")
    private String hashCode;

    @ApiModelProperty(value = "上传时原来的资源名字")
    private String originalMediaName;

    @ApiModelProperty(value = "资源名字")
    private String mediaName;

    @ApiModelProperty(value = "mime类型")
    private String mimeType;

    @ApiModelProperty(value = "存储方式的类型(1.本地存储,2.七牛,3.阿里,4.minio)")
    private Integer storeType;

    @ApiModelProperty(value = "资源类型(1.image,2.excel,3.word,4.pdf,5.zip)")
    private Integer mediaType;

    @ApiModelProperty(value = "存储路径")
    private String mediaPath;

    @ApiModelProperty(value = "资源大小")
    private Long mediaSize;

    @ApiModelProperty(value = "资源详情描述")
    private String description;

    @ApiModelProperty(value = "访问类型(1.公开,2.私有,3.授权)")
    private Integer accessType;

}
